/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* إعدادات عامة */
:root {
    --primary-color: #7B5E44;
    --secondary-color: #A68A64;
    --accent-color: #D4BEA3;
    --background-color: #F5F0E9;
    --text-color: #5A4634;
    --light-text: #7B5E44;
    --white-color: #FFFFFF;
    --shadow-color: rgba(123, 94, 68, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Tajawal', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50 L60 40 L50 30 L40 40 Z' fill='%23A68A64' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* أزرار */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.btn-primary:hover {
    background-color: #6A5039;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-login {
    background: var(--secondary-color);
    padding: 8px 18px;
    color: var(--white-color);
    border-radius: 6px;
    font-weight: 500;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* الهيدر */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 15px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.logo i {
    color: var(--primary-color);
    margin-left: 5px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    padding: 5px;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-color);
}

/* القسم الرئيسي - Hero */
.hero {
    height: 600px;
    background-image: url('/api/placeholder/1920/600');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 46, 33, 0.7);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ميزات سريعة */
.features {
    padding: 90px 0;
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23A68A64' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 35px 25px;
    border-radius: 12px;
    background-color: var(--white-color);
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(123, 94, 68, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-icon {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* تقييمات العملاء */
.testimonials {
    padding: 90px 0;
    background-color: var(--background-color);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    display: flex;
    margin-bottom: 30px;
}

.testimonial {
    min-width: 100%;
    padding: 20px;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(123, 94, 68, 0.08);
}

.testimonial-content p {
    font-style: italic;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 17px;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    width: 30px;
    height: 30px;
    background-color: var(--white-color);
    transform: rotate(45deg);
    box-shadow: 5px 5px 10px var(--shadow-color);
    border-right: 1px solid rgba(123, 94, 68, 0.08);
    border-bottom: 1px solid rgba(123, 94, 68, 0.08);
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.testimonial-author img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-left: 18px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stars {
    color: var(--secondary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* دعوة للتسجيل */
.cta {
    padding: 90px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    margin-bottom: 35px;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
}

.cta .btn-primary:hover {
    background-color: transparent;
    color: var(--white-color);
}

/* الفوتر */
footer {
    background-color: #3C2E21;
    color: var(--white-color);
    padding-top: 70px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-about {
    grid-column: span 1;
}

.footer-about .logo {
    color: var(--white-color);
}

.footer-about p {
    margin: 20px 0;
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

footer h3 {
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    padding-bottom: 12px;
    color: var(--accent-color);
}

footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, padding 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.footer-newsletter button {
    padding: 0 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.footer-newsletter button:hover {
    background-color: var(--white-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px var(--shadow-color);
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        padding-right: 0;
    }

    .testimonial-author img {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .testimonial-content:after {
        right: 50%;
        transform: translateX(50%) rotate(45deg);
    }
}
